package LuckyDraw

import (
	"gitee.com/yebetter/lucky-draw/Conf"
	"gitee.com/yebetter/lucky-draw/Core/Error"
)

type LuckyDrawFactoryApi interface {
	//设置奖项
	SetAward(award []*Conf.AwardItem)
	SetEventHandle(eventHandle Conf.EventHandle)
	//执行抽奖
	Handle() (*Conf.AwardResult, *Error.Errno)
	/**
	抽奖算法类型判断 int类型
	*/
	CheckTypeInt(typeInt int) bool
	/**
	抽奖算法类型判断 LUCKY_DRAW_RULE_TYPE 类型
	*/
	CheckType(typeRule Conf.LUCKY_DRAW_RULE_TYPE) bool
	//设置抽奖类型
	SetType(typeRule Conf.LUCKY_DRAW_RULE_TYPE)

	//设置抽奖类型
	SetTypeInt(typeInt int)
}
